package band.wukong.practice.webservice.kh.sample11;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.jws.WebService;

/**
 * @author wukong(wukonggg@139.com)
 */
@WebService(endpointInterface = "band.wukong.practice.webservice.kh.sample11.RobotService")
public class RobotServiceImpl implements RobotService {

    private static final Logger logger = LoggerFactory.getLogger(RobotServiceImpl.class);

    @Override
    public String sayHi(String name) {
        String msg = "Hi, @name! ".replace("@name", name);
        logger.debug("msg = " + msg);

        return msg;
    }

    @Override
    public String sayHi2(String name, String license) {
        logger.debug("license = " + license);
        String msg = "Hi, @name! ".replace("@name", name);
        logger.debug("msg = " + msg);

        return msg;
    }

    @Override
    public String sayHi3(String name) {
        String msg = "Hi, @name! ".replace("@name", name);
        logger.debug("msg = " + msg);

        return msg;
    }
}
